A Practical Look at the Lack of Cohesion in Methods Metric

نویسندگان

  • Letha H. Etzkorn
  • Carl G. Davis
  • Wei Li
چکیده

Software metrics for the procedural software development paradigm have been extensively studied. Metrics such as McCabe's cyclomatic complexity metric 1 and Halstead's Software Science metrics 2 are well known and frequently used to measure software complexity in the procedural paradigm. More recently, software metrics that are tailored to the measurement of design complexity in the object-oriented paradigm have been developed. Chidamber and Kemerer proposed a draft suite of software metrics for object-oriented software in 1991 3 that included six object-oriented design metrics based on measurement theory. This suite of metrics included depth of the inheritance tree (DIT), number of children (NOC), coupling between objects (CBO), response for a class (RFC), weighted methods per class (WMC), and lack of cohesion of methods (LCOM). The LCOM metric has been subject to multiple interpretations which can greatly influence the LCOM value derived for a particular class. This article compares and analyzes the definition and implementation variations of the LCOM metric, and provides an assessment of this metric. The multiple definitions of the LCOM metric currently in use include: 1) the original definition of the LCOM metric by Chidamber and Kemerer 3 2) the definition of the LCOM metric provided by Li and Henry 4,5 , 3) the redefinition of the Li and Henry version of the LCOM metric by Hitz and Montazeri 6 , and 4) the redefinition of their original LCOM metric by Chidamber and Kemerer.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Visual Indicator and Software Metric Formula to Determine Class Cohesion Problem and Software Design Quality

Classes is the basic unit in object oriented software, therefore their quality has significant impact on the overall quality of the software. Class cohesion is one of the important factors that determine whether the design quality of a software is good or bad. In software development it is essential for software developers to gauge the degree of cohesion; yet in software development practice, i...

متن کامل

A Proposal for Normalized Lack of Cohesion in Method (LCOM) Metric Using Field Experiment

Chidamber and Kemerer first defined a cohesion measure for object-oriented software – the Lack of Cohesion in Methods (LCOM) metric. One of the critique of the LCOM metric is that the metric does not yield normalized or standardized values, and as such, the metric does not seem appealing to a section of the software engineering community. This paper presents an approach for normalizing the LCOM...

متن کامل

Improving Object-Oriented Lack-of-Cohesion Metric by Excluding Special Methods

Classes are the basic units in object-oriented programs, and therefore, their quality has impact on the overall quality of the software. Class cohesion is a key quality factor, and it refers to the degree of relatedness of class attributes and methods. Software developers use class cohesion measure to assess the quality of their products and to guide the restructuring of poorly designed classes...

متن کامل

A Class Cohesion Metric For Object-Oriented Designs

Cohesion is a measure of relatedness or consistency in functionality of a software component. It is a highly desirably design characteristic because it measures separation of responsibilities, independence of components, and control of complexity. Cohesion has a significant effect on a design’s understandability, effectiveness and adaptability. An early evaluation of design components for cohes...

متن کامل

Comprehension of Object-Oriented Software Cohesion: The Empirical Quagmire

It is a little over ten years sinc e Chidamber and Kemerer's obje ct-oriented (OO) metric suite which included the Lack of Cohesion Of Methods (LCOM) metric was rst proposed [9]. Despite considerable e ort both theoretically and empirically sinc e then, the softwar eengineering community is still no ne arer nding a generally ac cepte d de nition or me asure of OO cohesion. Y et,achieving highly...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • JOOP

دوره 11  شماره 

صفحات  -

تاریخ انتشار 1998